# -*- coding: utf-8 -*-
from src.com.ydzy.app.stragety_init import env
from src.com.ydzy.util.base_util import BaserUtil
from src.com.ydzy.util.http_util import HttpClient

http_client = HttpClient()
base_client=BaserUtil()

active=env.active
env_dict={
    'test':'https://audit.gat.gz/',
    'local':'http://localhost:20028/',
}
interface='auditcenter/log_strategies/'
strategy_list=[i for i in range(2,10)]

def get_req_url(active):
    req_url=env_dict[active]+interface
    return req_url

def get_stragety_data(res):
    copy={}
    copy.update(res)
    copy=copy['data']
    if 'logType_text' in copy:
        del copy['logType_text']
    if 'updateTime' in copy:
        del copy['updateTime']
    return copy


#todo 用户注册类操作日(6) bios有个json数组类型日志更改 暂不支持
field_infos_dict={
    2:[

    ],
    3:[
        {
            "sortNum": 100,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "sourceApp",
                "type": "input",
                "label": "来源系统"
            },
            "fieldName": "sourceApp",
            "fieldZh": "来源系统",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "来源系统类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule100",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "来源系统完整性检查项",
            "ruleAdvise": "来源系统规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 101,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "dstApp",
                "type": "input",
                "label": "目标系统"
            },
            "fieldName": "dstApp",
            "fieldZh": "目标系统",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "目标系统类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule101",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "目标系统完整性检查项",
            "ruleAdvise": "目标系统规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 102,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "grade",
                "type": "select",
                "label": "日志等级",
                "optionKey": "code",
                "optionName": "content",
                "dictType": "z_log_level"
            },
            "fieldName": "grade",
            "fieldZh": "日志等级",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "日志等级类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule102",
            "ruleReverse": "0",
            "expression": "code@audit_dict@type='z_log_level'",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "日志等级完整性检查项",
            "ruleAdvise": "日志等级规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:29:24",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 103,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "content",
                "type": "input",
                "label": "详情"
            },
            "fieldName": "content",
            "fieldZh": "详情",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "详情类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule103",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "详情完整性检查项",
            "ruleAdvise": "详情规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 104,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "eventId",
                "type": "input",
                "label": "事件唯一标识"
            },
            "fieldName": "eventId",
            "fieldZh": "事件唯一标识",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "事件唯一标识类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule104",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "事件唯一标识完整性检查项",
            "ruleAdvise": "事件唯一标识规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 105,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "riskType",
                "type": "input",
                "label": "风险类型"
            },
            "fieldName": "riskType",
            "fieldZh": "风险类型",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "风险类型类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule105",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "风险类型完整性检查项",
            "ruleAdvise": "风险类型规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
    ],
    4:[
        {
            "sortNum": 100,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "sourceApp",
                "type": "input",
                "label": "来源系统"
            },
            "fieldName": "sourceApp",
            "fieldZh": "来源系统",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "来源系统类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule100",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "来源系统完整性检查项",
            "ruleAdvise": "来源系统规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 101,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "dstApp",
                "type": "input",
                "label": "目标系统"
            },
            "fieldName": "dstApp",
            "fieldZh": "目标系统",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "目标系统类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule101",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "目标系统完整性检查项",
            "ruleAdvise": "目标系统规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 102,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "grade",
                "type": "select",
                "label": "日志等级",
                "optionKey": "code",
                "optionName": "content",
                "dictType": "z_log_level"
            },
            "fieldName": "grade",
            "fieldZh": "日志等级",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "日志等级类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule102",
            "ruleReverse": "0",
            "expression": "code@audit_dict@type='z_log_level'",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "日志等级完整性检查项",
            "ruleAdvise": "日志等级规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:29:24",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 103,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "content",
                "type": "input",
                "label": "详情"
            },
            "fieldName": "content",
            "fieldZh": "详情",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "详情类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule103",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "详情完整性检查项",
            "ruleAdvise": "详情规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 104,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "eventId",
                "type": "input",
                "label": "事件唯一标识"
            },
            "fieldName": "eventId",
            "fieldZh": "事件唯一标识",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "事件唯一标识类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule104",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "事件唯一标识完整性检查项",
            "ruleAdvise": "事件唯一标识规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 105,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "riskType",
                "type": "input",
                "label": "风险类型"
            },
            "fieldName": "riskType",
            "fieldZh": "风险类型",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "风险类型类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule105",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "风险类型完整性检查项",
            "ruleAdvise": "风险类型规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
    ],
    5:[
        {
            "sortNum": 100,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "sourceApp",
                "type": "input",
                "label": "来源系统"
            },
            "fieldName": "sourceApp",
            "fieldZh": "来源系统",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "来源系统类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule100",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "来源系统完整性检查项",
            "ruleAdvise": "来源系统规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 101,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "dstApp",
                "type": "input",
                "label": "目标系统"
            },
            "fieldName": "dstApp",
            "fieldZh": "目标系统",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "目标系统类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule101",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "目标系统完整性检查项",
            "ruleAdvise": "目标系统规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 102,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "grade",
                "type": "select",
                "label": "日志等级",
                "optionKey": "code",
                "optionName": "content",
                "dictType": "z_log_level"
            },
            "fieldName": "grade",
            "fieldZh": "日志等级",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "日志等级类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule102",
            "ruleReverse": "0",
            "expression": "code@audit_dict@type='z_log_level'",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "日志等级完整性检查项",
            "ruleAdvise": "日志等级规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:29:24",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 103,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "content",
                "type": "input",
                "label": "详情"
            },
            "fieldName": "content",
            "fieldZh": "详情",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "详情类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule103",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "详情完整性检查项",
            "ruleAdvise": "详情规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 104,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "trustScore",
                "type": "input",
                "label": "环境感知数据"
            },
            "fieldName": "trustScore",
            "fieldZh": "环境感知数据",
            "fieldType": "int",
            "fieldFormat": "",
            "fieldDesc": "环境感知数据类型(分数)",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule104",
            "ruleReverse": "0",
            "expression": "^-?\d+$",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "环境感知数据完整性检查项",
            "ruleAdvise": "环境感知数据规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 105,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "changeType",
                "type": "select",
                "label": "环境变更类型",
                "optionKey": "code",
                "optionName": "content",
                "options": [
                    {
                        "code": "01",
                        "content": "物理环境安全风险"
                    },
                    {
                        "code": "02",
                        "content": "终端身份标识变化风险"
                    },
                    {
                        "code": "03",
                        "content": "网络环境变化风险"
                    },
                    {
                        "code": "04",
                        "content": "恶意代码风险"
                    },
                    {
                        "code": "05",
                        "content": "漏洞风险"
                    },
                    {
                        "code": "06",
                        "content": "系统安全配置风险"
                    },
                    {
                        "code": "07",
                        "content": "应用环境风险"
                    },
                    {
                        "code": "08",
                        "content": "可能会导致终端故障的健康项"
                    },
                ]

            },
            "fieldName": "changeType",
            "fieldZh": "环境变更类型",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "环境变更类型类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule105",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "环境变更类型完整性检查项",
            "ruleAdvise": "环境变更类型规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 106,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "eventId",
                "type": "input",
                "label": "事件唯一标识"
            },
            "fieldName": "eventId",
            "fieldZh": "事件唯一标识",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "事件唯一标识类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule106",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "事件唯一标识完整性检查项",
            "ruleAdvise": "事件唯一标识规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
    ],
    6:[
        {
            "sortNum": 100,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "signType",
                "type": "select",
                "label": "注册方式",
                "optionKey": "code",
                "optionName": "content",
                "dictType": "z_operate_type"
            },
            "fieldName": "signType",
            "fieldZh": "注册方式",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "注册方式类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule101",
            "ruleReverse": "0",
            "expression": "code@audit_dict@type='z_register_type'",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "注册方式完整性检查项",
            "ruleAdvise": "注册方式规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:29:24",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 101,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateUserIdCard",
                "type": "input",
                "label": "注册人员身份证号"
            },
            "fieldName": "operateUserIdCard",
            "fieldZh": "注册人员身份证号",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "注册人员身份证号类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule101",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "注册人员身份证号完整性检查项",
            "ruleAdvise": "注册人员身份证号规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 102,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "operateUserName",
                "type": "input",
                "label": "注册人员姓名"
            },
            "fieldName": "operateUserName",
            "fieldZh": "注册人员姓名",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "注册人员姓名类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule102",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "注册人员姓名完整性检查项",
            "ruleAdvise": "注册人员姓名规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 103,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "cause",
                "type": "input",
                "label": "失败原因"
            },
            "fieldName": "cause",
            "fieldZh": "失败原因",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "失败原因类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule103",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "失败原因完整性检查项",
            "ruleAdvise": "失败原因规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
    ],
    7:[
        {
            "sortNum": 100,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "authSys",
                "type": "input",
                "label": "认证系统"
            },
            "fieldName": "authSys",
            "fieldZh": "认证系统",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "认证方式类型(认证方式唯一标识)",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule100",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "认证方式完整性检查项",
            "ruleAdvise": "认证方式规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 100,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "authType",
                "type": "input",
                "label": "认证方式"
            },
            "fieldName": "authType",
            "fieldZh": "认证方式",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "认证方式",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule100",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "认证系统完整性检查项",
            "ruleAdvise": "认证系统规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 102,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "authFactor",
                "type": "select",
                "label": "认证因子",
                "optionKey": "code",
                "optionName": "content",
                "dictType": "z_auth_factor"
            },
            "fieldName": "authFactor",
            "fieldZh": "认证因子",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "认证因子类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule102",
            "ruleReverse": "0",
            "expression": "code@audit_dict@type='z_auth_factor'",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "认证因子完整性检查项",
            "ruleAdvise": "认证因子规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:29:24",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 103,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "cause",
                "type": "input",
                "label": "失败原因"
            },
            "fieldName": "cause",
            "fieldZh": "失败原因",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "失败原因类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule103",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "失败原因完整性检查项",
            "ruleAdvise": "失败原因规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
    ],
    8:[
        {
            "sortNum": 100,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "authType",
                "type": "select",
                "label": "授权类型",
                "optionKey": "code",
                "optionName": "content",
                "dictType": "z_auth_type"
            },
            "fieldName": "authType",
            "fieldZh": "授权类型",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "授权类型类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule100",
            "ruleReverse": "0",
            "expression": "code@audit_dict@type='z_auth_type'",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "授权类型完整性检查项",
            "ruleAdvise": "授权类型规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:29:24",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 101,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "userId",
                "type": "input",
                "label": "授权对象id"
            },
            "fieldName": "userId",
            "fieldZh": "授权对象id",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "授权对象id类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule101",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "授权对象id完整性检查项",
            "ruleAdvise": "授权对象id规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 102,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "userName",
                "type": "input",
                "label": "授权对象名称"
            },
            "fieldName": "userName",
            "fieldZh": "授权对象名称",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "授权对象名称类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule102",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "授权对象名称完整性检查项",
            "ruleAdvise": "授权对象名称规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 103,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "roleNames",
                "type": "input",
                "label": "授权角色名"
            },
            "fieldName": "roleNames",
            "fieldZh": "授权角色名",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "授权角色名类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule103",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "授权角色名完整性检查项",
            "ruleAdvise": "授权角色名规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 103,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "authSubject",
                "type": "input",
                "label": "权限处理主体"
            },
            "fieldName": "authSubject",
            "fieldZh": "权限处理主体",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "权限处理主体类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule103",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "权限处理主体完整性检查项",
            "ruleAdvise": "权限处理主体规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 103,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "authObject",
                "type": "input",
                "label": "授权管理客体"
            },
            "fieldName": "authObject",
            "fieldZh": "授权管理客体",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "授权管理客体类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule103",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "授权管理客体完整性检查项",
            "ruleAdvise": "授权管理客体规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 104,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "needApprove",
                "type": "select",
                "label": "是否需要审批",
                "optionKey": "code",
                "optionName": "content",
                "options": [
                    {
                        "code": "1",
                        "content": "是"
                    },
                    {
                        "code": "0",
                        "content": "否"
                    }
                ]
            },
            "fieldName": "needApprove",
            "fieldZh": "是否需要审批",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "是否需要审批类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule104",
            "ruleReverse": "0",
            "expression": "[01]",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "是否需要审批完整性检查项",
            "ruleAdvise": "是否需要审批规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 15:14:52",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 105,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "approveId",
                "type": "input",
                "label": "审批编号"
            },
            "fieldName": "approveId",
            "fieldZh": "审批编号",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "审批编号类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule105",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "审批编号完整性检查项",
            "ruleAdvise": "审批编号规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 15:04:44",
            "updateTime": "2024-05-30 16:16:21"
        },
    ],
    9:[
        {
            "sortNum": 100,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "authType",
                "type": "select",
                "label": "鉴权类型",
                "optionKey": "code",
                "optionName": "content",
                "dictType": "z_jq_auth_type"
            },
            "fieldName": "authType",
            "fieldZh": "鉴权类型",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "鉴权类型类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule100",
            "ruleReverse": "0",
            "expression": "code@audit_dict@type='z_jq_auth_type'",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "鉴权类型完整性检查项",
            "ruleAdvise": "鉴权类型规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:29:24",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 101,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "authAppCode",
                "type": "input",
                "label": "鉴权应用代码"
            },
            "fieldName": "authAppCode",
            "fieldZh": "鉴权应用代码",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "鉴权应用代码类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule101",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "鉴权应用代码完整性检查项",
            "ruleAdvise": "鉴权应用代码规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 102,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "authFunctionCode",
                "type": "input",
                "label": "功能代码"
            },
            "fieldName": "authFunctionCode",
            "fieldZh": "功能代码",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "功能代码类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule102",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "功能代码完整性检查项",
            "ruleAdvise": "功能代码规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 103,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "fieldSetCode",
                "type": "input",
                "label": "数据集代码"
            },
            "fieldName": "fieldSetCode",
            "fieldZh": "数据集代码",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "数据集代码类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule103",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "数据集代码完整性检查项",
            "ruleAdvise": "数据集代码规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 104,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "dataResource",
                "type": "input",
                "label": "前端数据资源"
            },
            "fieldName": "dataResource",
            "fieldZh": "前端数据资源",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "前端数据资源类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule104",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "前端数据资源完整性检查项",
            "ruleAdvise": "前端数据资源规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 104,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "interfaceInfo",
                "type": "input",
                "label": "接口信息"
            },
            "fieldName": "interfaceInfo",
            "fieldZh": "接口信息",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "接口信息类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule104",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "接口信息完整性检查项",
            "ruleAdvise": "接口信息规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 105,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "authScene",
                "type": "input",
                "label": "鉴权场景"
            },
            "fieldName": "authScene",
            "fieldZh": "鉴权场景",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "鉴权场景类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule105",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "鉴权场景完整性检查项",
            "ruleAdvise": "鉴权场景规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 106,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "authTaskType",
                "type": "select",
                "label": "鉴权任务类型",
                "optionKey": "code",
                "optionName": "content",
                "dictType": "z_auth_task_type"
            },
            "fieldName": "authTaskType",
            "fieldZh": "鉴权任务类型",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "鉴权任务类型类型",
            "isInternal": "1",
            "isMust": "1",
            "validateType": "02",
            "dataRule": "Z_dataRule106",
            "ruleReverse": "0",
            "expression": "code@audit_dict@type='z_auth_task_type'",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "鉴权任务类型完整性检查项",
            "ruleAdvise": "鉴权任务类型规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:29:24",
            "updateTime": "2024-05-30 16:10:15"
        },
        {
            "sortNum": 107,
            "relType": "01",
            "showOpt": "01,02,03",
            "pageOptJson": {
                "field": "authTaskId",
                "type": "input",
                "label": "鉴权任务ID"
            },
            "fieldName": "authTaskId",
            "fieldZh": "鉴权任务ID",
            "fieldType": "string",
            "fieldFormat": "",
            "fieldDesc": "鉴权任务ID类型",
            "isInternal": "1",
            "isMust": "0",
            "validateType": "02",
            "dataRule": "Z_dataRule107",
            "ruleReverse": "0",
            "expression": "",
            "usageOpt": "01",
            "blockType": "01",
            "mustAdvise": "鉴权任务ID完整性检查项",
            "ruleAdvise": "鉴权任务ID规则性检查项",
            "mustScore": 1,
            "ruleScore": 1,
            "queryOpt": "",
            "status": "1",
            "createTime": "2024-05-30 14:42:59",
            "updateTime": "2024-05-30 16:10:15"
        },
    ],
}


def main():
    for i in strategy_list:
        url = get_req_url(active) + str(i)
        res = http_client.get(url, fast_falg=True)
        data = get_stragety_data(base_client.json2obj(res))
        data['fieldInfos'] = field_infos_dict[i]
        print(f'请求报文--->{base_client.obj2json(data)}')
        res2=http_client.put(url=url,data=data,fast_falg=True)



if __name__=='__main__':
    main()
